﻿Ext.define('app.system.substance.SubstanceController', {
    extend: 'Ext.app.ViewController',
    alias: 'controller.substance',
    init: function () {
        var me = this;
    },
    onAdd: function ()
    {
        var grid = this.getView();
        var win = Ext.create("app.system.substance.Edit");
        win.on("savesuccess", function (obj)
        {
            win.close();
            grid.store.load();
        });
        win.show();
    }
});
